package com.rk.cust.application.api.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Getter
@Setter
public class AddCustRequestDto {


    @NotBlank(message = "法人姓名不能为空")
    @Size(max = 20, message = "法人姓名最多20个字符")
    private String corporation;

    @Pattern(regexp = "businessCode|orgCode|taxCode", message = "证件类型只能为businessCode|orgCode|taxCode的一种")
    private String certType;

    @Pattern(regexp = "[A-Z0-9]{12}", message = "证件号码为12位大写字母和数字的组合")
    private String certNo;

}
